
export const SUCCESS  = {
    code: 0,
    msg: 'ok'
}

export const RequestCode = {
    SUCCESS: SUCCESS,
    PARAMS_ERROR: {
        code: 40000,
        msg: '请求参数错误'
    },
    NOT_LOGIN_ERROR: {
        code: 40100,
        msg: '未登录'
    },
    NO_AUTH_ERROR: {
        code: 40101,
        msg: '无权限'
    },
    NOT_FOUND_ERROR: {
        code: 40400,
        msg: '请求数据不存在'
    },
    FORBIDDEN_ERROR: {
        code: 40300,
        msg: '禁止访问'
    },
    SYSTEM_ERROR: {
        code: 50000,
        msg: '系统内部异常'
    },
    OPERATION_ERROR: {
        code: 50001,
        msg: '操作失败'
    }
};